<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*----------------------------------------------
    Users' configuration file
------------------------------------------------*/

$config['roles'] = array (
	'default' => array(
        'authorized_patterns'     => array ( '/wiki/read/','/wiki/readpart/'  ),
        'not_authorized_patterns' => array ( '/wiki/read/priv'   )
    ),
    'editor' => array(
        'authorized_patterns'     => array ( '/wiki/read/','/wiki/readpart/','/admin/wikimgr/' ),
        'not_authorized_patterns' => array ( '/admin/wikimgr/edit/fea' )
    ),
    'admin' => array(
        'authorized_patterns'     => array ( '/wiki/read/','/wiki/readpart/','/admin/' ),
        'not_authorized_patterns' => array ( '/wiki/read/priv' )
    ),
    'superadmin' => array (
        'authorized_patterns' => array ( '/' )
    ),
);


$config['users']= array(
  'default'    => array('password' => ''       ,'role' => 'default'), 
  'john'       => array('password' => '123'    ,'role' => 'editor'),
  'admin'      => array('password' => '123'    ,'role' => 'admin'),
  'superadmin' => array('password' => '123'    ,'role' => 'superadmin')
);

?>
